<html xmlns:concordion="http://www.concordion.org/2007/concordion">
<head>
<link href="../../../../../concordion.css" rel="stylesheet" type="text/css" />
</head>
<body>

    <h1>Missing &lt;head&gt;</h1>

    <p>
        If the document does not contain a &lt;head&gt; section then one will
        be automatically inserted as the first child of the &lt;html&gt; element.
        Any elements before the &lt;body&gt; section will be moved into the
        &lt;head&gt;.
    </p>

    <div class="example">

        <h3>Example</h3>

        <p>When this document is processed:</p>
<pre concordion:execute="#result = process(#TEXT)">
&lt;html xmlns:concordion="http://www.concordion.org/2007/concordion"&gt;
&lt;link href="my.css" rel="stylesheet" type="text/css" /&gt;
&lt;title&gt;My Title&lt;/title&gt;
&lt;body&gt;
    &lt;p&gt;Body content goes here.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>

        <p>
        
        </p>
<pre concordion:assertEquals="#result">
&lt;html xmlns:concordion="http://www.concordion.org/2007/concordion"&gt; _
&lt;head&gt;
&lt;link href="my.css" rel="stylesheet" type="text/css" /&gt;
&lt;title&gt;My Title&lt;/title&gt;
&lt;/head&gt; _
&lt;body&gt;
    &lt;p&gt;Body content goes here.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
    </div>
        
    <h2>Further Details</h2>

    <ul>
        <li>What if there is no &lt;html&gt; element? [A: OUT OF SCOPE]</li>
    </ul>


</body>
</html>